const mongoose = require('mongoose');


const schedulesSchema = new mongoose.Schema({
    movieId :  {
        type: mongoose.Schema.Types.ObjectId,
        ref: "movies"
    }, // 电影 id
    cinemasId : {
        type: mongoose.Schema.Types.ObjectId,
        ref: "cinemas"
    }, // 影院 id
    theaterId : {
        type: mongoose.Schema.Types.ObjectId,
        ref: "theaters"
    }, // 放映厅 id
    showTime :String, // 放映时间 id  schedules
    date:String,
    price : String, // 价格
})  
mongoose.model("schedules", schedulesSchema, "schedules")

